package com.kaifamiao.calendar;

import java.util.Date;

public class Sinaean {

    private String name; // 姓名
    private char gender; // 性别
    private Date birthdate; // 出生日期

    public Sinaean() {
        super();
    }

    public Sinaean(String name, char gender, Date birthdate) {
        this.setName( name );
        this.setGender( gender );
        this.setBirthdate( birthdate );
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        if( gender == '男' || gender == '女' ) {
            this.gender = gender;
        }
    }

    public Date getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }
}
